package com.appkubes.mall.core.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
 * 广告
 * @author Rongjie
 */
@Data
@TableName("mall_ad")
@KeySequence(value = "mall_ad_SEQ")
@ApiModel(value = "MallAd对象")
public class MallAd implements Serializable{

       @ApiModelProperty(value = "应用标志位")
       private String appKey;

       @TableId(value = "ad_key", type = IdType.UUID)
       private String adKey;

       @ApiModelProperty(value = "标题")
       private String title;

       @ApiModelProperty(value = "外部小程序链接地址")
       private String path;

       @ApiModelProperty(value = "参数")
       private String param;

       @ApiModelProperty(value = "图片")
       private String pic;

       @ApiModelProperty(value = "排序", example = "1")
       private Integer sort;

       private Integer createTime;

       private Integer updateTime;

       @ApiModelProperty(value = "广告类型：1、首页轮播图，2、首页中部广告", example = "1")
       private Integer type;

       @ApiModelProperty(value = "备注")
       private String memo;

       @ApiModelProperty(value = "启用状态 1启用", example = "1")
       private Integer state;

       @ApiModelProperty(value = "1.内链 2.外部小程序 3.客服消息", example = "1")
       private Integer linkType;

       @ApiModelProperty(value = "外部小程序APPID")
       private String appid;

       @ApiModelProperty(value = "版本号", example = "1")
       @Version
       private Integer version;

}
